import request from '@/utils/request'
export const login = data => request({
  url: 'sys/login',
  method: 'Post',
  data
})

export const getUserInfo = () => request({
  url: '/sys/profile',
  method: 'post'
})

/** *
 *
 * 获取用户的基本信息  现在写它 完全是为了显示头像
 * **/
export const getUserDetailById = id => request({
  url: `/sys/user/${id}`
})

export const logout = () => {

}

